<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Linux使用overlayfs测试驱动安装情况 - __JM_Joy_Blog__</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="__JM_Joy__" /><meta name="description" content="最近在deepin下使用deepin-graphics-driver-manager尝试安装bumblebee方案一直失败，所以被迫研究de" /><meta name="keywords" content="Hugo, theme, even" />






<meta name="generator" content="Hugo 0.53 with even 4.0.0" />


<link rel="canonical" href="https://jmjoy.github.io/post/linux%E4%BD%BF%E7%94%A8overlayfs%E6%B5%8B%E8%AF%95%E9%A9%B1%E5%8A%A8%E5%AE%89%E8%A3%85%E6%83%85%E5%86%B5/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">


<link href="/dist/even.8e23cf7d.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="Linux使用overlayfs测试驱动安装情况" />
<meta property="og:description" content="最近在deepin下使用deepin-graphics-driver-manager尝试安装bumblebee方案一直失败，所以被迫研究de" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://jmjoy.github.io/post/linux%E4%BD%BF%E7%94%A8overlayfs%E6%B5%8B%E8%AF%95%E9%A9%B1%E5%8A%A8%E5%AE%89%E8%A3%85%E6%83%85%E5%86%B5/" /><meta property="article:published_time" content="2019-02-03T10:30:00&#43;08:00"/>
<meta property="article:modified_time" content="2019-02-03T10:30:00&#43;08:00"/>

<meta itemprop="name" content="Linux使用overlayfs测试驱动安装情况">
<meta itemprop="description" content="最近在deepin下使用deepin-graphics-driver-manager尝试安装bumblebee方案一直失败，所以被迫研究de">


<meta itemprop="datePublished" content="2019-02-03T10:30:00&#43;08:00" />
<meta itemprop="dateModified" content="2019-02-03T10:30:00&#43;08:00" />
<meta itemprop="wordCount" content="406">



<meta itemprop="keywords" content="" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Linux使用overlayfs测试驱动安装情况"/>
<meta name="twitter:description" content="最近在deepin下使用deepin-graphics-driver-manager尝试安装bumblebee方案一直失败，所以被迫研究de"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">__JM_Joy_Blog__</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">Home</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">Archives</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">Tags</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">Categories</li>
      </a><a href="/about/">
        <li class="mobile-menu-item">About</li>
      </a>
  </ul>
</nav>
  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">__JM_Joy_Blog__</a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">Home</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">Archives</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">Tags</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">Categories</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/">About</a>
      </li>
  </ul>
</nav>
    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">Linux使用overlayfs测试驱动安装情况</h1>

      <div class="post-meta">
        <span class="post-time"> 2019-02-03 </span>
        
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    
  </div>
</div>
    <div class="post-content">
      <p>最近在deepin下使用<code>deepin-graphics-driver-manager</code>尝试安装bumblebee方案一直失败，所以被迫研究<code>deepin-graphics-driver-manager</code>的源代码，发现其实通过shell脚本来安装的，但是失败日志只说明是apt依赖出了问题而没有更详细的说明。通过<code>design.md</code>得知是使用了linux的<code>overlayfs</code>这个功能来先模拟安装驱动测试安装情况，然后调用小茶壶测试程序让用户确认安装情况（画面是否撕裂等），用户确认后才真正同步到磁盘，所以<code>overlayfs</code>是可以做到类似还原精灵的效果的。</p>

<p>其中<code>overlayroot</code>这个工具提供了<code>overlayroot-enable</code>和<code>overlayroot-disable</code>这两个命令可以开启或者关闭还原精灵的功能，都是需要重启才能生效的，原理是自动修改<code>/etc/overlayroot.conf</code>这个文件的配置。</p>

<p>相关链接：</p>

<p><a href="https://blog.csdn.net/luckyapple1028/article/details/77916194">https://blog.csdn.net/luckyapple1028/article/details/77916194</a></p>

<p><a href="https://blog.csdn.net/luckyapple1028/article/details/78075358">https://blog.csdn.net/luckyapple1028/article/details/78075358</a></p>

    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">__JM_Joy__</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">2019-02-03</span>
  </p>
  
  
</div><footer class="post-footer">
      
      <nav class="post-nav">
        
        <a class="next" href="/post/wineplayonlinux%E4%B8%AD%E6%96%87%E4%B9%B1%E7%A0%81%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88/">
            <span class="next-text nav-default">Wine(playonlinux)中文乱码解决方案</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="https://github.com/jmjoy" class="iconfont icon-github" title="github"></a>
  <a href="https://jmjoy.github.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  

  <span class="copyright-year">
    &copy; 
    2017 - 
    2019
    <span class="heart">
      <i class="iconfont icon-heart"></i>
    </span>
    <span class="author">__JM_Joy__</span>
  </span>
</div>
    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>
<script type="text/javascript" src="/dist/even.26188efa.min.js"></script>








</body>
</html>
